package com.oop.Static;

public class Tes_static2 {
    //2：赋初值
    {
        System.out.println("匿名代码块");
    }

    //1：只执行一次
    static {
        System.out.println("静态代码块");
    }

    //3
    public Tes_static2(){
        System.out.println("构造方法");
    }


    public static void main(String[] args) {
        Tes_static2 l1 = new Tes_static2();
        System.out.println("--------------------");
        Tes_static2 l2 = new Tes_static2();
    }
}
